package com.example.event_resource_java.commons.util;


import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.Map;

public class MapToJsonStr {
    public static String conversion(Map map) throws JsonProcessingException {
        ObjectMapper json = new ObjectMapper();
        return json.writeValueAsString(map);
    }
}
